<?php 
// check if requested module allowed to the logged in user  :: if not -- redirected him to error page
AdminMaster::checkModuleAccessability();

define('THUMB_DIR','thumb/');
define('THUMB_SIZE_CUSTOM',91);

define('SMALL_DIR','small/');
define('SMALL_SIZE',273);

define('BIG_DIR','big/');
define('BIG_SIZE',709);

$_img_upload_path = array();

$_img_upload_path['wedpkg'] = 'shaadi-images/wedding-package/';
$_img_upload_path['honeymoon_pkg'] = 'shaadi-images/honeymoon-package/';
$_img_upload_path['product'] = 'shaadi-images/product/';
$_img_upload_path['gifts'] = 'shaadi-images/gifts/';
$_img_upload_path['deals'] = 'shaadi-images/deals/';
$_img_upload_path['vendor-product'] = 'shaadi-images/vendor-product/';
$_img_upload_path['vendor-service'] = 'shaadi-images/vendor-service/';
$_img_upload_path['venue_images'] = 'shaadi-images/venue_images/';
$_img_upload_path['wedpkg_days_specification'] = 'shaadi-images/wedding-package/days-specification/';
$_img_upload_path['page_content'] = 'shaadi-images/content-images/';

$adminCSS = array();
$adminCSS[] = 'reset.css';
$adminCSS[] = 'grid.css';
$adminCSS[] = 'styles.css';
$adminCSS[] = 'jquery.wysiwyg.css';
$adminCSS[] = 'tablesorter.css';
$adminCSS[] = 'thickbox.css';
$adminCSS[] = 'theme-blue.css';

$adminJS = array();
$adminJS[] = 'jquery-1.3.2.min.js';
$adminJS[] = 'jquery.wysiwyg.js';
$adminJS[] = 'jquery.tablesorter.min.js';
$adminJS[] = 'jquery.tablesorter.pager.js';
$adminJS[] = 'jquery.pstrength-min.1.2.js';
$adminJS[] = 'thickbox.js';
$adminJS[] = 'slider.js';
$adminJS[] = 'jquery.cookie.js';
$adminJS[] = 'jquery.validate.js';
/*****Messages**************/
$_MESSESGE['login']['msg'] = "Login Fail: Wrong Username or Password"; 
$_MESSESGE['login']['type'] = "n-attention"; 
$_MESSESGE['logout']['msg'] = "Logot successfully"; 
$_MESSESGE['logout']['type'] = "n-success"; 
$_MESSESGE['passsuccess']['msg'] = "Password changed successfully"; 
$_MESSESGE['passsuccess']['type'] = "n-success"; 
$_MESSESGE['oldpassmismatch']['msg'] = "Old password do not matches."; 
$_MESSESGE['oldpassmismatch']['type'] = "n-attention"; 
$_MESSESGE['useractive']['msg'] = "User has been activated successfully";
$_MESSESGE['useractive']['type'] = "n-success"; 
$_MESSESGE['userdeactive']['msg'] = "User has been deactivated successfully";
$_MESSESGE['userdeactive']['type'] = "n-success"; 
$_MESSESGE['userdelete']['msg'] = "User has been deleted successfully";
$_MESSESGE['userdelete']['type'] = "n-success";
$_MESSESGE['emailexists']['msg'] = "Email already exists."; 
$_MESSESGE['emailexists']['type'] = "n-attention"; 
$_MESSESGE['userupdated']['msg'] = "User has been updated successfully."; 
$_MESSESGE['userupdated']['type'] = "n-success"; 

$_MESSESGE[777] = "Operation not permitted. You do not have enough privileges to perform this operation."; 
// admin honeymoon package messages
$_MESSESGE[101] = "Record Activated Successfully."; 
$_MESSESGE[102] = "Record Deactivated Successfully."; 
$_MESSESGE[103] = "Record Deleted Successfully."; 
$_MESSESGE[104] = "Record Added Successfully."; 
$_MESSESGE[105] = "Record Addition Failed."; 
$_MESSESGE[106] = "Record Edited Successfully."; 
$_MESSESGE[107] = "Record Edit Failed."; 
$_MESSESGE[1001] = "Package Activated Successfully."; 
$_MESSESGE[1002] = "Package Deactivated Successfully."; 
$_MESSESGE[1003] = "Package Deleted Successfully."; 
$_MESSESGE[1004] = "Package Added Successfully."; 
$_MESSESGE[1005] = "Package Addition Failed."; 
$_MESSESGE[1006] = "Package Edited Successfully."; 
$_MESSESGE[1007] = "Package Edit Failed."; 
$_MESSESGE[1008] = "Honeymoon Theme Added Successfully."; 
$_MESSESGE[1009] = "Honeymoon Theme Addition Failed."; 
$_MESSESGE[1010] = "Honeymoon Theme Edited Successfully."; 
$_MESSESGE[1011] = "Honeymoon Theme Edit Failed."; 
$_MESSESGE[1012] = "Honeymoon Type Added Successfully."; 
$_MESSESGE[1013] = "Honeymoon Type Addition Failed."; 
$_MESSESGE[1014] = "Honeymoon Type Edited Successfully."; 
$_MESSESGE[1015] = "Honeymoon Type Edit Failed."; 
$_MESSESGE[1016] = "Honeymoon Destination Added Successfully."; 
$_MESSESGE[1017] = "Honeymoon Destination Addition Failed."; 
$_MESSESGE[1018] = "Honeymoon Destination Edited Successfully."; 
$_MESSESGE[1019] = "Honeymoon Destination Edit Failed."; 

$_MESSESGE[1031] = "Wedding Package Activated Successfully."; 
$_MESSESGE[1032] = "Wedding Package DeActivated Successfully."; 
$_MESSESGE[1033] = "Wedding Package Deleted Successfully."; 
$_MESSESGE[1034] = "Wedding Package Added Successfully."; 
$_MESSESGE[1035] = "Wedding Package Addition Failed."; 
$_MESSESGE[1036] = "Wedding Package Edited Successfully."; 
$_MESSESGE[1037] = "Wedding Package Edit Failed."; 

$_MESSESGE[1038] = "Wedding Theme Activated Successfully."; 
$_MESSESGE[1039] = "Wedding Theme DeActivated Successfully."; 
$_MESSESGE[1040] = "Wedding Theme Deleted Successfully."; 
$_MESSESGE[1041] = "Wedding Theme Added Successfully."; 
$_MESSESGE[1042] = "Wedding Theme Addition Failed."; 
$_MESSESGE[1043] = "Wedding Theme Edited Successfully."; 
$_MESSESGE[1044] = "Wedding Theme Edit Failed."; 

$_MESSESGE[1045] = "Wedding Slab Activated Successfully."; 
$_MESSESGE[1046] = "Wedding Slab DeActivated Successfully."; 
$_MESSESGE[1047] = "Wedding Slab Deleted Successfully."; 
$_MESSESGE[1048] = "Wedding Slab Added Successfully."; 
$_MESSESGE[1049] = "Wedding Slab Addition Failed."; 
$_MESSESGE[1050] = "Wedding Slab Edited Successfully."; 
$_MESSESGE[1051] = "Wedding Slab Edit Failed."; 

$_MESSESGE[1061] = "Access Group Added Successfully."; 
$_MESSESGE[1062] = "Access Group Addition Failed."; 
$_MESSESGE[1063] = "Access Group Edited Successfully."; 
$_MESSESGE[1064] = "Access Group Edit Failed."; 
$_MESSESGE[1065] = "Access Group Activated Successfully."; 
$_MESSESGE[1066] = "Access Group DeActivated Successfully."; 
$_MESSESGE[1067] = "Access Group Deleted Successfully."; 

$_MESSESGE[1071] = "Admin User Added Successfully."; 
$_MESSESGE[1072] = "Admin User Addition Failed."; 
$_MESSESGE[1073] = "Admin User Edited Successfully."; 
$_MESSESGE[1074] = "Admin User Edit Failed."; 
$_MESSESGE[1075] = "Admin User Activated Successfully."; 
$_MESSESGE[1076] = "Admin User DeActivated Successfully."; 
$_MESSESGE[1077] = "Admin User Deleted Successfully."; 

$_MESSESGE[1081] = "Category Activated Successfully."; 
$_MESSESGE[1082] = "Category DeActivated Successfully."; 
$_MESSESGE[1083] = "Category Deleted Successfully."; 
$_MESSESGE[1084] = "Category Added Successfully."; 
$_MESSESGE[1085] = "Category Addition Failed."; 
$_MESSESGE[1086] = "Category Edited Successfully."; 
$_MESSESGE[1087] = "Category Edit Failed."; 

$_MESSESGE[1088] = "Sub Category Activated Successfully."; 
$_MESSESGE[1089] = "Sub Category DeActivated Successfully."; 
$_MESSESGE[1090] = "Sub Category Deleted Successfully."; 
$_MESSESGE[1091] = "Sub Category Added Successfully."; 
$_MESSESGE[1092] = "Sub Category Addition Failed."; 
$_MESSESGE[1093] = "Sub Category Edited Successfully."; 
$_MESSESGE[1094] = "Sub Category Edit Failed."; 

$_MESSESGE[1095] = "Sub Sub Category Activated Successfully."; 
$_MESSESGE[1096] = "Sub Sub Category DeActivated Successfully."; 
$_MESSESGE[1097] = "Sub Sub Category Deleted Successfully."; 
$_MESSESGE[1098] = "Sub Sub Category Added Successfully."; 
$_MESSESGE[1099] = "Sub Sub Category Addition Failed."; 
$_MESSESGE[1100] = "Sub Sub Category Edited Successfully."; 
$_MESSESGE[1101] = "Sub Sub Category Edit Failed."; 

$_MESSESGE[1201] = "Product Activated Successfully."; 
$_MESSESGE[1202] = "Product DeActivated Successfully."; 
$_MESSESGE[1203] = "Product Deleted Successfully."; 
$_MESSESGE[1204] = "Product Added Successfully."; 
$_MESSESGE[1205] = "Product Addition Failed."; 
$_MESSESGE[1206] = "Product Edited Successfully."; 
$_MESSESGE[1207] = "Product Edit Failed."; 

$_MESSESGE[1301] = "Venue Type Activated Successfully."; 
$_MESSESGE[1302] = "Venue Type DeActivated Successfully."; 
$_MESSESGE[1303] = "Venue Type Deleted Successfully."; 
$_MESSESGE[1304] = "Venue Type Added Successfully."; 
$_MESSESGE[1305] = "Venue Type Addition Failed."; 
$_MESSESGE[1306] = "Venue Type Edited Successfully."; 
$_MESSESGE[1307] = "Venue Type Edit Failed."; 

$_MESSESGE[1311] = "Venue Service Activated Successfully."; 
$_MESSESGE[1312] = "Venue Service DeActivated Successfully."; 
$_MESSESGE[1313] = "Venue Service Deleted Successfully."; 
$_MESSESGE[1314] = "Venue Service Added Successfully."; 
$_MESSESGE[1315] = "Venue Service Addition Failed."; 
$_MESSESGE[1316] = "Venue Service Edited Successfully."; 
$_MESSESGE[1317] = "Venue Service Edit Failed."; 

$_MESSESGE[1321] = "Venue Rating Activated Successfully."; 
$_MESSESGE[1322] = "Venue Rating DeActivated Successfully."; 
$_MESSESGE[1323] = "Venue Rating Deleted Successfully."; 
$_MESSESGE[1324] = "Venue Rating Added Successfully."; 
$_MESSESGE[1325] = "Venue Rating Addition Failed."; 
$_MESSESGE[1326] = "Venue Rating Edited Successfully."; 
$_MESSESGE[1327] = "Venue Rating Edit Failed."; 

$_MESSESGE[1331] = "Venue Activated Successfully."; 
$_MESSESGE[1332] = "Venue DeActivated Successfully."; 
$_MESSESGE[1333] = "Venue Deleted Successfully."; 
$_MESSESGE[1334] = "Venue Added Successfully."; 
$_MESSESGE[1335] = "Venue Addition Failed."; 
$_MESSESGE[1336] = "Venue Edited Successfully."; 
$_MESSESGE[1337] = "Venue Edit Failed."; 

$_MESSESGE[1401] = "Country Activated Successfully."; 
$_MESSESGE[1402] = "Country DeActivated Successfully."; 
$_MESSESGE[1403] = "Country Deleted Successfully."; 
$_MESSESGE[1404] = "Country Added Successfully."; 
$_MESSESGE[1405] = "Country Addition Failed."; 
$_MESSESGE[1406] = "Country Edited Successfully."; 
$_MESSESGE[1407] = "Country Edit Failed."; 

$_MESSESGE[1411] = "State Activated Successfully."; 
$_MESSESGE[1412] = "State DeActivated Successfully."; 
$_MESSESGE[1413] = "State Deleted Successfully."; 
$_MESSESGE[1414] = "State Added Successfully."; 
$_MESSESGE[1415] = "State Addition Failed."; 
$_MESSESGE[1416] = "State Edited Successfully."; 
$_MESSESGE[1417] = "State Edit Failed."; 

$_MESSESGE[1421] = "City Activated Successfully."; 
$_MESSESGE[1422] = "City DeActivated Successfully."; 
$_MESSESGE[1423] = "City Deleted Successfully."; 
$_MESSESGE[1424] = "City Added Successfully."; 
$_MESSESGE[1425] = "City Addition Failed."; 
$_MESSESGE[1426] = "City Edited Successfully."; 
$_MESSESGE[1427] = "City Edit Failed."; 

$_MESSESGE[1431] = "Zone Activated Successfully."; 
$_MESSESGE[1432] = "Zone DeActivated Successfully."; 
$_MESSESGE[1433] = "Zone Deleted Successfully."; 
$_MESSESGE[1434] = "Zone Added Successfully."; 
$_MESSESGE[1435] = "Zone Addition Failed."; 
$_MESSESGE[1436] = "Zone Edited Successfully."; 
$_MESSESGE[1437] = "Zone Edit Failed."; 

$_MESSESGE[1441] = "Brand Activated Successfully."; 
$_MESSESGE[1442] = "Brand DeActivated Successfully."; 
$_MESSESGE[1443] = "Brand Deleted Successfully."; 
$_MESSESGE[1444] = "Brand Added Successfully."; 
$_MESSESGE[1445] = "Brand Addition Failed."; 
$_MESSESGE[1446] = "Brand Edited Successfully."; 
$_MESSESGE[1447] = "Brand Edit Failed."; 

$_MESSESGE[1501] = "Product Attribute Activated Successfully."; 
$_MESSESGE[1502] = "Product Attribute DeActivated Successfully."; 
$_MESSESGE[1503] = "Product Attribute Deleted Successfully."; 
$_MESSESGE[1504] = "Product Attribute Added Successfully."; 
$_MESSESGE[1505] = "Product Attribute Addition Failed."; 
$_MESSESGE[1506] = "Product Attribute Edited Successfully."; 
$_MESSESGE[1507] = "Product Attribute Edit Failed."; 

$_MESSESGE[1511] = "Service Attribute Activated Successfully."; 
$_MESSESGE[1512] = "Service Attribute DeActivated Successfully."; 
$_MESSESGE[1513] = "Service Attribute Deleted Successfully."; 
$_MESSESGE[1514] = "Service Attribute Added Successfully."; 
$_MESSESGE[1515] = "Service Attribute Addition Failed."; 
$_MESSESGE[1516] = "Service Attribute Edited Successfully."; 
$_MESSESGE[1517] = "Service Attribute Edit Failed."; 

$_MESSESGE[1601] = "News Activated Successfully."; 
$_MESSESGE[1602] = "News DeActivated Successfully."; 
$_MESSESGE[1603] = "News Deleted Successfully."; 
$_MESSESGE[1604] = "News Added Successfully."; 
$_MESSESGE[1605] = "News Addition Failed."; 
$_MESSESGE[1606] = "News Edited Successfully."; 
$_MESSESGE[1607] = "News Edit Failed."; 

$_MESSESGE[1611] = "Service Activated Successfully."; 
$_MESSESGE[1612] = "Service DeActivated Successfully."; 
$_MESSESGE[1613] = "Service Deleted Successfully."; 
$_MESSESGE[1614] = "Service Added Successfully."; 
$_MESSESGE[1615] = "Service Addition Failed."; 
$_MESSESGE[1616] = "Service Edited Successfully."; 
$_MESSESGE[1617] = "Service Edit Failed."; 

$_MESSESGE[1151] = "Gift Activated Successfully."; 
$_MESSESGE[1152] = "Gift Deactivated Successfully."; 
$_MESSESGE[1153] = "Gift Deleted Successfully."; 
$_MESSESGE[1154] = "Gift Added Successfully."; 
$_MESSESGE[1155] = "Gift Addition Failed."; 
$_MESSESGE[1156] = "Gift Edited Successfully."; 
$_MESSESGE[1157] = "Gift Edit Failed.";

$_MESSESGE[1621] = "Vendor Product Activated Successfully."; 
$_MESSESGE[1622] = "Vendor Product DeActivated Successfully."; 
$_MESSESGE[1623] = "Vendor Product Deleted Successfully."; 
$_MESSESGE[1624] = "Vendor Product Added Successfully."; 
$_MESSESGE[1625] = "Vendor Product Addition Failed."; 
$_MESSESGE[1626] = "Vendor Product Edited Successfully."; 
$_MESSESGE[1627] = "Vendor Product Edit Failed."; 

$_MESSESGE[1631] = "Vendor Service Activated Successfully."; 
$_MESSESGE[1632] = "Vendor Service DeActivated Successfully."; 
$_MESSESGE[1633] = "Vendor Service Deleted Successfully."; 
$_MESSESGE[1634] = "Vendor Service Added Successfully."; 
$_MESSESGE[1635] = "Vendor Service Addition Failed."; 
$_MESSESGE[1636] = "Vendor Service Edited Successfully."; 
$_MESSESGE[1637] = "Vendor Service Edit Failed."; 

$_MESSESGE[1161] = "Deal Activated Successfully."; 
$_MESSESGE[1162] = "Deal Deactivated Successfully."; 
$_MESSESGE[1163] = "Deal Deleted Successfully."; 
$_MESSESGE[1164] = "Deal Added Successfully."; 
$_MESSESGE[1165] = "Deal Addition Failed."; 
$_MESSESGE[1166] = "Deal Edited Successfully."; 
$_MESSESGE[1167] = "Deal Edit Failed.";

$_MESSESGE[1641] = "Vendor Activated Successfully."; 
$_MESSESGE[1642] = "Vendor DeActivated Successfully."; 
$_MESSESGE[1643] = "Vendor Deleted Successfully."; 
$_MESSESGE[1644] = "Vendor Added Successfully."; 
$_MESSESGE[1645] = "Vendor Addition Failed."; 
$_MESSESGE[1646] = "Vendor Edited Successfully."; 
$_MESSESGE[1647] = "Vendor Edit Failed."; 

$_MESSESGE[1701] = "Menu Category Activated Successfully."; 
$_MESSESGE[1702] = "Menu Category DeActivated Successfully."; 
$_MESSESGE[1703] = "Menu Category Deleted Successfully."; 
$_MESSESGE[1704] = "Menu Category Added Successfully."; 
$_MESSESGE[1705] = "Menu Category Addition Failed."; 
$_MESSESGE[1706] = "Menu Category Edited Successfully."; 
$_MESSESGE[1707] = "Menu Category Edit Failed."; 

$_MESSESGE[1711] = "Venue Item Activated Successfully."; 
$_MESSESGE[1712] = "Venue Item DeActivated Successfully."; 
$_MESSESGE[1713] = "Venue Item Deleted Successfully."; 
$_MESSESGE[1714] = "Venue Item Added Successfully."; 
$_MESSESGE[1715] = "Venue Item Addition Failed."; 
$_MESSESGE[1716] = "Venue Item Edited Successfully."; 
$_MESSESGE[1717] = "Venue Item Edit Failed."; 

$_MESSESGE[1751] = "Inclusion Item Activated Successfully."; 
$_MESSESGE[1752] = "Inclusion Item DeActivated Successfully."; 
$_MESSESGE[1753] = "Inclusion Item Deleted Successfully."; 
$_MESSESGE[1754] = "Inclusion Item Added Successfully."; 
$_MESSESGE[1755] = "Inclusion Item Addition Failed."; 
$_MESSESGE[1756] = "Inclusion Item Edited Successfully."; 
$_MESSESGE[1757] = "Inclusion Item Edit Failed."; 

$_MESSESGE[1761] = "Venue Inventory Activated Successfully."; 
$_MESSESGE[1762] = "Venue Inventory DeActivated Successfully."; 
$_MESSESGE[1763] = "Venue Inventory Deleted Successfully."; 
$_MESSESGE[1764] = "Venue Inventory Added Successfully."; 
$_MESSESGE[1765] = "Venue Inventory Addition Failed."; 
$_MESSESGE[1766] = "Venue Inventory Edited Successfully."; 
$_MESSESGE[1767] = "Venue Inventory Edit Failed."; 

$_MESSESGE[1771] = "Venue Tariff Activated Successfully."; 
$_MESSESGE[1772] = "Venue Tariff DeActivated Successfully."; 
$_MESSESGE[1773] = "Venue Tariff Deleted Successfully."; 
$_MESSESGE[1774] = "Venue Tariff Added Successfully."; 
$_MESSESGE[1775] = "Venue Tariff Addition Failed."; 
$_MESSESGE[1776] = "Venue Tariff Edited Successfully."; 
$_MESSESGE[1777] = "Venue Tariff Edit Failed."; 

$_MESSESGE[1781] = "Page Activated Successfully."; 
$_MESSESGE[1782] = "Page DeActivated Successfully."; 
$_MESSESGE[1783] = "Page Deleted Successfully."; 
$_MESSESGE[1784] = "Page Added Successfully."; 
$_MESSESGE[1785] = "Page Addition Failed."; 
$_MESSESGE[1786] = "Page Edited Successfully."; 
$_MESSESGE[1787] = "Page Edit Failed."; 

define('_FCK_BASEPATH' ,'include/editor/') ;
?>